
/*
	
	This code is thanks to the lovely people at Cocoadex
	http://cocoadex.com/2008/02/nsevent-modifications-swipe-ro.html

 */

#import <Cocoa/Cocoa.h>

@interface NSResponder (NSMultitouch)
- (void)magnifyWithEvent:(NSEvent *)event;
- (void)rotateWithEvent:(NSEvent *)event;
- (void)swipeWithEvent:(NSEvent *)event;
- (void)beginGestureWithEvent:(NSEvent *)event;
- (void)endGestureWithEvent:(NSEvent *)event;
@end

@interface NSEvent (NSMultitouch)

// Swipe :
-(CGFloat)deltaY;
-(CGFloat)deltaX;

// Magnification :
-(CGFloat)deltaZ;
-(CGFloat)magnification;

// Rotation :
-(CGFloat)rotation;

@end
